﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YWTSSys.DAL;
using YWTSSys.Model;
using YWTSSys.Library;
using System.Data;

namespace YWTSSys.BLL
{
    public class SEMailListController
    {
        public static int Add(string MailTo, string Subject, string Body)
        {
            return SEMailListDAL.Add(MailTo, Subject, Body);
        }
        public static List<SEMailListInfo> GetAllNeedSendList()
        {
            return CBO.FillCollection<SEMailListInfo>(SEMailListDAL.GetAllNeedSendList());
        }
        public static bool UpdateSend(int ID)
        {
            return SEMailListDAL.UpdateSend(ID);           
        }
    }
}
